import javax.swing.ImageIcon;
import javax.swing.JPanel;
import java.io.*;

public class User implements Serializable {
	
	String name;
	int gamesPlayed;
	int wins;
	int computerGamesPlayed;
	int computerWins;
	int tournamentsWon;
	ImageIcon playerAvatar = new ImageIcon();
	String playerToken = "";	
	
	
	public User(){
		
	}
	
	public User(String name)  {
		this.name = name;
	} 
	
	
	// Getters & Setters
	
	public ImageIcon getPlayerAvatar(){
		return playerAvatar;
	}
	
	public void setPlayerAvatar(ImageIcon playerAvatar){
		this.playerAvatar = playerAvatar;
	}
	
	public String getPlayerToken(){
		return playerToken;
	}
	
	public void setPlayerToken(String playerToken){
		this.playerToken = playerToken;
	}
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	public int getGamesPlayed() {
		return gamesPlayed;
	}


	public void setGamesPlayed(int gamesPlayed) {
		this.gamesPlayed = gamesPlayed;
	}

	public int getWins() {
		return wins;
	}

	public void setWins(int wins) {
		this.wins = wins;
	}
	
	public int getComputerGamesPlayed() {
		return computerGamesPlayed;
	}

	public void setComputerGamesPlayed(int computerGamesPlayed) {
		this.computerGamesPlayed = computerGamesPlayed;
	}

	public int getComputerWins() {
		return computerWins;
	}

	public void setComputerWins(int computerWins) {
		this.computerWins = computerWins;
	}

	public int getTournamentsWon() {
		return tournamentsWon;
	}

	public void setTournamentsWon(int tournamentsWon) {
		this.tournamentsWon = tournamentsWon;
	}
}
